import 'package:dailoz/constants.dart';
import 'package:dailoz/size_config.dart';
import 'package:flutter/material.dart';

class BottomLoginSignUpTextButton extends StatelessWidget {
  const BottomLoginSignUpTextButton({
    Key? key,
    this.text,
    required this.buttonText,
    required this.onPressed,
  }) : super(key: key);

  final String? text;
  final String? buttonText;
  final VoidCallback? onPressed;

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        Text(
          text!,
          style: Theme.of(context).textTheme.bodyText1?.copyWith(
                fontSize: SizeConfig.getProportionateFontSize(14.0),
              ),
        ),
        TextButton(
          onPressed: onPressed,
          child: Text(
            buttonText!,
            style: Theme.of(context).textTheme.bodyText1?.copyWith(
                  fontWeight: FontWeight.bold,
                  fontSize: SizeConfig.getProportionateFontSize(14.0),
                ),
          ),
        ),
      ],
    );
  }
}
